//
//  OpaqueTypesView.swift
//  SwiftUIDemo
//
//  Created by zhouzuosong on 2020/10/24.
//  Copyright © 2020 Kael. All rights reserved.
//

import SwiftUI

struct OpaqueTypesView: View {
    var text = true
    
    var body: some View {
        if text {
            Text("Hello, World!")
                .hidden()
                .padding()
                .background(Color.gray)
                .overlay(Text("我们"))
                .accentColor(.white)

        }
        Color.yellow
    }
}

struct OpaqueTypesView_Previews: PreviewProvider {
    static var previews: some View {
        OpaqueTypesView()
    }
}
